<div class="clearfix" id="setsContainer">
<?php
	$counter = 0;
	$col_0_str = '<div class="waterflow_col">';
	$col_1_str = '<div class="waterflow_col">';
	$col_2_str = '<div class="waterflow_col">';
	$col_3_str = '<div class="waterflow_col">';
	$col_end_str = '</div>';
	while (have_posts()) : the_post();
		$setId = get_post_meta($post->ID, "fsAutoPost", true);
		$setInfo = getSetBasicInfo($setId, "n");
		$primarySrc = $setInfo["primarySrc"];
		$dom_str = '<a class="loop-entry" 
			href="'.get_post_permalink().'" title="'.get_the_title().'">
			<img src="'.$primarySrc.'" />
			<span class="">'.get_the_title().'</span>
		</a>';
		switch ($counter%4) {
			case 0:
				$col_0_str .= $dom_str;
				break;
			case 1:
				$col_1_str .= $dom_str;
				break;
			case 2:
				$col_2_str .= $dom_str;
				break;
			case 3:
				$col_3_str .= $dom_str;
				break;
		}
	
		$counter++;
	endwhile;
	echo $col_0_str.$col_end_str.$col_1_str.$col_end_str.$col_2_str.$col_end_str.$col_3_str.$col_end_str;
?>
</div>